package com.smartcruise.util.sortLetter;

/**
 * Created by FengChaoQun
 * on 2016/7/27
 */
public class SortModel<T> {

    private String sortLetters;  //显示数据拼音的首字母
    private int remark;
    private T data;

    public String getSortLetters() {
        return sortLetters;
    }

    public void setSortLetters(String sortLetters) {
        this.sortLetters = sortLetters;
    }

    public int getRemark() {
        return remark;
    }

    public void setRemark(int remark) {
        this.remark = remark;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSameOrder(SortModel sortModel) {
        return getSortLetters().equals(sortModel.getSortLetters());
    }

    @Override
    public String toString() {
        return "SortModel{" +
                "sortLetters='" + sortLetters + '\'' +
                ", remark=" + remark +
                ", data=" + data +
                '}';
    }

}
